package com.shenke.user.constant;

/**
 * 用户常量
 */
public final class UserConstant {

    /**
     * 用户登录态键
     */
    public static final String USER_LOGIN_STATE = "user_login";

    /**
     * 默认密码
     */
    public static final String DEFAULT_PASSWORD = "123456";

    /**
     * 盐值，混淆密码
     */
    public static final String SALT = "shenke";

    /**
     * 用户登录 IP
     */
    public static final String USER_LOGIN_IP = "user_login_ip";

    /**
     * 用户名正则表达式
     */
    public static final String NAME_REGEX = "^[a-zA-Z0-9_]+$";

    /**
     * 邮箱正则表达式
     */
    public static final String EMAIL_REGEX = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$";

    /**
     * 手机号正则表达式
     */
    public static final String PHONE_REGEX = "^1[3-9]\\d{9}$";
}
